package com.lagou.quartz;

import org.quartz.Job;
import org.quartz.JobExecutionContext;
import org.quartz.JobExecutionException;

/**
 * 定义一个job，需实现Job接口
 */
public class DemoJob implements Job {

    public void execute(JobExecutionContext jobExecutionContext) throws JobExecutionException {
        long second = System.currentTimeMillis()/1000;
        System.out.println("我是⼀个定时任务逻辑 时间:" + second + "秒");
    }
}
